import React from 'react'
import { withRouter, NavLink } from 'react-router-dom'
import { observer, inject } from 'mobx-react'
@withRouter
@inject('kao')
@observer
class App extends React.Component {
    constructor() {
        super()
    }
    render() {
        const { name, banji, text,setNum } = this.props.kao
        return (
            <div className='com'>
                <p>
                    {
                        name
                    }
                </p>
                <p>
                    {
                        banji
                    }
                </p>
                <p>
                    {
                        text
                    }
                </p>
                <h1>上机了</h1>
                <button onClick={()=>setNum(4)}>完成上机</button>
            </div>
        )
    }
}
export default App